package com.mysql.jdbc;

import java.sql.Connection;
import java.sql.DriverPropertyInfo;
import java.sql.SQLException;
import java.sql.SQLFeatureNotSupportedException;
import java.util.Properties;
import java.util.logging.Logger;

/**
 * The Class Driver.
 */
public class Driver implements java.sql.Driver {

  /** The mock. */
  public static java.sql.Driver mock = null;

  /**
   * See super class or interface. (non-Javadoc)
   * @see java.sql.Driver#connect(java.lang.String, java.util.Properties)
   */
  @Override
  public Connection connect(final String url, final Properties info) throws SQLException {
    return mock.connect(url, info);
  }

  /**
   * See super class or interface. (non-Javadoc)
   * @see java.sql.Driver#acceptsURL(java.lang.String)
   */
  @Override
  public boolean acceptsURL(final String url) throws SQLException {
    return mock.acceptsURL(url);
  }

  /**
   * See super class or interface. (non-Javadoc)
   * @see java.sql.Driver#getPropertyInfo(java.lang.String, java.util.Properties)
   */
  @Override
  public DriverPropertyInfo[] getPropertyInfo(final String url, final Properties info)
      throws SQLException {
    return mock.getPropertyInfo(url, info);
  }

  /**
   * See super class or interface. (non-Javadoc)
   * @see java.sql.Driver#getMajorVersion()
   */
  @Override
  public int getMajorVersion() {
    return mock.getMajorVersion();
  }

  /**
   * See super class or interface. (non-Javadoc)
   * @see java.sql.Driver#getMinorVersion()
   */
  @Override
  public int getMinorVersion() {
    return mock.getMinorVersion();
  }

  /**
   * See super class or interface. (non-Javadoc)
   * @see java.sql.Driver#jdbcCompliant()
   */
  @Override
  public boolean jdbcCompliant() {
    return mock.jdbcCompliant();
  }

  /**
   * See super class or interface. (non-Javadoc)
   * @see java.sql.Driver#getParentLogger()
   */
  @Override
  public Logger getParentLogger() throws SQLFeatureNotSupportedException {
    return mock.getParentLogger();
  }
}
